package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.FocusUser;
import com.tanhua.model.mongo.Video;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface VideoApi {

    //保存视频
    String save(Video video);

    //根据vid查询数据列表
    List<Video> findMovementsByPids(List<Long> vids);

    //分页查询数据列表
    List<Video> queryVideoList(int page, Integer pagesize);

    //根据用户id
    PageResult findByUserId(Integer page, Integer pagesize, Long userId);

    //视频点赞
    void videoLike(String id);
    //视频取消点赞
    void videoDislike(String id);
    //关注用户
    void focus(FocusUser focusUser);
    //取消关注
    void Unfocus(Long userId, Long uid);
}
